package com.yitiao.controller;

import com.yitiao.service.CommerceGoodsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/stock")
public class StockController {

    private final CommerceGoodsService goodsService;

    @GetMapping("/de")
    public String deStock(){
        goodsService.deStock();
        return "ok";
    }
}
